package com.tgpms.interfaces.properties;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * @author eve
 * <p>
 * 初始化 IP 和 端口
 */
@Component
@ConfigurationProperties(prefix = "vform")
public class Properties {

    /**
     * 测试环境或生产环境
     */
    public static String ip;
    /**
     * tns地址
     **/
    public static String tns;
    /**
     * mydeskurl地址
     **/
    public static String mydeskurl;
    /**
     * mydesk
     **/
    public static String mydesk;


    @Value("${vform.ip}")
    public void setIp(String ip) {
        Properties.ip = ip;
    }
    
    @Value("${vform.tns}")
    public void setTns(String tns) {
    	Properties.tns = tns;
    }

    @Value("${vform.mydeskurl}")
    public void setMydeskurl(String mydeskurl) {
        Properties.mydeskurl = mydeskurl;
    }

    @Value("${vform.mydesk}")
    public void setMydesk(String mydesk) {
        Properties.mydesk = mydesk;
    }


}
